<notempty name="_extra_menu">
{// 动态扩展菜单 //}
{:extra_menu($_extra_menu,$__MENU__)}
</notempty>
<li class="admin-parent">
    <a class="am-cf" data-am-collapse="{ target: '#collapse-nav-个人中心' }">
        <span class="am-icon-list-ul"></span>
        个人中心
        <span class="am-icon-angle-right am-fr am-margin-right"></span>
    </a>
    <ul class="am-list am-collapse admin-sidebar-sub <if condition="in_array(ACTION_NAME,array('mydocument','draftbox','examine'))">am-in</if>" id="collapse-nav-个人中心">
        <li <eq name="Think.ACTION_NAME" value="mydocument">class="current"</eq>>
            <a class="item" href="{:U('article/mydocument')}"><span class="am-icon-file-text"></span> 我的文档</a>
        </li>
        <eq name="show_draftbox" value="1">
        <li <eq name="Think.ACTION_NAME" value="draftbox">class="current"</eq>>
            <a class="item" href="{:U('article/draftbox')}"><span class="am-icon-file-text"></span> 草稿箱</a>
        </li>
        </eq>
        <eq name="show_examine" value="1">
        <li <eq name="Think.ACTION_NAME" value="draftbox">class="examine"</eq>>
            <a class="item" href="{:U('article/examine')}"><span class="am-icon-file-text"></span> 待审核</a>
        </li>
        </eq>
    </ul>
</li>
<volist name="nodes" id="sub_menu">
<!-- 子导航 -->
<notempty name="sub_menu">
<li class="admin-parent">
    <a class="am-cf" data-am-collapse="{ target: '#collapse-nav-{$sub_menu.id}' }">
    	<i class="am-icon-list-ul am-icon"></i> 
    	{$sub_menu.title}管理
        <span class="am-icon-angle-right am-fr am-margin-right"></span>
    </a>
    <ul class="am-list am-collapse admin-sidebar-sub <if condition="$_GET['model_id'] eq $sub_menu['id'] || $_GET['model'] eq $sub_menu['id']">am-in</if>" id="collapse-nav-{$sub_menu.id}">
    <if condition="$sub_menu['extend'] eq '1'">
        <li><a class="am-cf" href="{:U('article/index',array('model_id'=>$sub_menu['id']))}"><span class="am-icon-file-text"></span> {$sub_menu.title}列表</a></li>
        <li><a class="am-cf" href="{:U('article/add',array('model_id'=>$sub_menu['id']))}"><span class="am-icon-paste"></span> 添加{$sub_menu.title}</a></li>
    <elseif condition="$sub_menu['extend'] eq '2'"/>
        <li><a class="am-cf" href="{:U('Page/index',array('model_id'=>$sub_menu['id']))}"><span class="am-icon-file-text"></span> {$sub_menu.title}列表</a></li>
        <li><a class="am-cf" href="{:U('Page/add',array('model_id'=>$sub_menu['id']))}"><span class="am-icon-paste"></span> 添加{$sub_menu.title}</a></li>
    </if>
    </ul>
</li>
</notempty>
<!-- /子导航 -->
</volist>

<!-- 回收站 -->
<eq name="show_recycle" value="1">
<li>
    <a class="am-cf" href="{:U('article/recycle')}"><span class="am-icon-trash"></span> 回收站</a>
</li>
</eq>